package cn.stylefeng.guns.modular.basic.mapper;

import cn.stylefeng.guns.modular.basic.entity.BasicCostStandardConf;
import cn.stylefeng.guns.modular.basic.model.params.BasicCostStandardConfParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicCostStandardConfResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 成本标准配置表 Mapper 接口
 * </p>
 *
 * @author zhangzh
 * @since 2024-05-08
 */
public interface BasicCostStandardConfMapper extends BaseMapper<BasicCostStandardConf> {

    /**
     * 获取列表
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    List<BasicCostStandardConfResult> customList(@Param("paramCondition") BasicCostStandardConfParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BasicCostStandardConfParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    Page<BasicCostStandardConfResult> customPageList(@Param("page") Page page, @Param("paramCondition") BasicCostStandardConfParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页实体列表
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    List<BasicCostStandardConfResult> customAllList(@Param("paramCondition") BasicCostStandardConfParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhangzh
     * @Date 2024-05-08
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BasicCostStandardConfParam paramCondition);

    /**
     * 批量添加
     * @param list
     * @return
     */
    boolean saveBatchList(@Param("list")List<BasicCostStandardConfParam> list);


    boolean delByDepId(@Param("deptId") Long deptId);

    boolean delByProId(@Param("proId") Long proId);
}
